package service

import (
	"seat-service/model/dto"
)

type ClassroomAdmin interface {
	SelectClassroomByCondition(condition dto.GetClassroomCondition) (count int64, classrooms []dto.ClassroomInformations, err error) //条件查询教室信息
	SelectClassroomById(classroomId int) (classroom dto.ClassroomInformations, err error)                                            //根据id查询教室信息
	UpdateClassroomInformationById(informations dto.ClassroomInformations) (newClassroom dto.ClassroomInformations, err error)       //修改教室信息
	AddClassroom(classroom dto.AddClassroom) (err error)                                                                             //新增教室信息
	DeleteClassroom(classroom dto.DeleteClassIds) (err error)                                                                        //删除教室信息
	InsertClassrooms(classrooms []dto.AddClassroom) (errClassrooms []dto.AddClassroom, err error)                                    //Excel表批量导入数据
	TimerClassroom() (err error)                                                                                                     //用于计时器，调整时间和状态
}
